lang = window.navigator.userLanguage || window.navigator.language;
console.log('Change language to',lang)

i18n.map('en', {
  hello: 'world',
  store: {
    purchase: 'purchase',
    basket: 'basket'
  },
  'shipping.options': 'shipping'
})
i18n.map('zh-CN', {
  hello: 'world',
  store: {
    purchase: '购买',
    basket: 'basket'
  },
  'shipping.options': 'shipping'
})

uplocal={
	'zh-CN':{
		browse: "浏览",
		cancelled: "已取消",
		remove: "移除",
		upload: "上传",
		done: "已完成",
		cancel: "取消"
	}
}

if(uplocal[lang]){
	Uploader.localisation = uplocal[lang]
	i18n.setLanguage(lang)
}